/*
 * $Id: IResourceQueue.java,v 1.5 2009/11/02 19:33:32 navdeep_mahajan Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.load;

import java.io.Serializable;
import java.util.Set;

import com.ge.healthcare.autosc.common.pojo.TaskNResource;

public interface IResourceQueue extends Serializable{
    public boolean consume(TaskNResource task);
    public void release(TaskNResource task);
	public int max(String category);
	public int expireTime(String category);
	public int size(String category);
	public boolean contains(TaskNResource task);
	public void addQueue(String name , IResourceType resourceType);
	public Set<String> getKeys();
	public Set<Long> getKeys(String category);
	public TaskNResource get(String key, Long id);
	public void copy(IResourceQueue resourceQueue);
	public IResourceType getResourceType(String key);	
}
